{% extends "templates/base.html" %}

{% block title%}My Profile{% endblock %}

{% block main %}
	<h2>my profile</h2>
	
	<form method="post">	
        <div>
            {{ user_form.first_name.label_tag }}
            {{ user_form.first_name }}
        </div>
        <div>
            {{ user_form.last_name.label_tag }}
            {{ user_form.last_name }}
        </div>
        <div>
            {{ user_form.town.label_tag }}
            {{ user_form.town }}
        </div>
         <div>
			{{ user_form.phone.errors }}
            {{ user_form.phone.label_tag }}
            {{ user_form.phone }}
        </div>
		<p>
			
			<input type="hidden" name="_id" value="{{ user_form.instance.key.id }}"/>
			<input type="hidden" name="_do_update_profile" value="True"/>
			<input class="button" type="submit" value="Save"/>	
		</p>		
	</form>
{% endblock %}